@extends('layout.index')
@section('title','用户友情链接添加')
@section('content')
<div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">友情链接添加</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-heading">
         

        @if (count($errors) > 0)
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="col-lg-6">
                    <form role="form" action="{{url('/admin/links/insert')}}" method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label>名称:</label>
                            <input type="text" name="title" class="form-control" varlue="{{old('title')}}">
                            <p class="help-block"></p>
                        </div>
                        <div class="form-group">
                            <label>域名:</label>
                            <input type="text" name="links" class="form-control" varlue="{{old('links')}}">
                            <p class="help-block"></p>
                        </div>
                         {{csrf_field()}}
                        <button class="btn btn-success" type="submit">添加</button>
                        <button class="btn btn-info" type="reset">重置</button>
                    </form>
                </div>
                
            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>

@endsection


@section('content')
<div class="row">
               
            </div>
<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-heading">
        <!-- @if(session('error'))
        <div class="alert alert-danger alert-dismissable">
            <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
             <!-- 读取闪存中 session的值 -->
          <a class="alert-link" href="#"> {{session('error')}} </a>.
        </div>
        @endif -->

        @if (count($errors) > 0)
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="col-lg-6">
                    <form role="form" action="{{url('/admin/user/insert')}}" method="post" enctype="multipart/form-data">
                        <div class="form-group">
                            <label>标题:</label>
                            <input type="text" name="title" class="form-control" varlue="{{old('title')}}">
                            <p class="help-block"></p>
                        </div>
                        <div class="form-group">
                            <label>链接:</label>
                            <input type="text" name="links" class="form-control" varlue="{{old('links')}}">
                            <p class="help-block"></p>
                        </div>
                        
                        {{csrf_field()}}
                        <button class="btn btn-success" type="submit">添加</button>
                        <button class="btn btn-info" type="reset">重置</button>
                    </form>
                </div>
                
            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>

@endsection